package com.yunxin.yundubbo.util;

import java.util.concurrent.ConcurrentHashMap;

public class ChannelIdContext {

    private static final ConcurrentHashMap<String, String> REQUEST_MAP = new ConcurrentHashMap<>();

    public static void set(String channelId,String serverName) {
        REQUEST_MAP.put(channelId, serverName);
    }

    public static String remove(String channelId) {
        return REQUEST_MAP.remove(channelId);
    }
}
